▍ humdrum codex / glint v1.0.2
license AGPL-3.0
833 B raw
id
TASK-004
title
Editor rebuilds full visual model twice per keystroke (O(document))
status
🟢 In progress
assignee
created_date
2026-06-28 18:38
updated_date
2026-06-30 00:21
labels
perf, release-1
dependencies
priority
low
ordinal
4000

Description

Every InsertRune→followCursor→buildVisual rescans+rewraps all lines; MoveUp/MoveDown call buildVisual then followCursor calls it again (2 full scans/vertical keystroke). Fine for notes, costly for long docs in the writing canvas. Fix: thread one []vrow through move→followCursorWith(rows); longer term cache the visual model, invalidate on edit/resize.

Acceptance Criteria